package com.kuiandjie.service;

import java.util.List;

import com.kuiandjie.dao.ContactNoteDao;
import com.kuiandjie.entity.ContactNote;

public class ContactNoteService {
	private ContactNoteDao dao = new ContactNoteDao();
	
	public List<ContactNote> findByContactId(int id) {
		return dao.findCNByConId(id);
	}

	public List<ContactNote> getNoteByIdAndTime(int contactId, int noteId,
			String lastTime) {
		return dao.getNoteByIdAndTime(contactId, noteId, lastTime);
	}

	public void insertNote(ContactNote cn) {
		dao.insertNote(cn);
	}
}
